<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0026)http://wenda.wecenter.com/ -->
<html class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="renderer" content="webkit">
    <title>学并思问答</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--<base href="http://wenda.wecenter.com/">--><base href="."><!--[if IE]></base><![endif]-->
    <link href="" rel="shortcut icon" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/icon.css" />
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/common.css" />
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/link.css" />
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/style.css" />
    <link rel="stylesheet" type="text/css" href="/tp/Public/Css/user.css" />
    <script type="text/javascript">
        var _12A3A3BB0FDD5081012D9CA4191A17F3="";
        var G_POST_HASH=_12A3A3BB0FDD5081012D9CA4191A17F3;
        var G_INDEX_SCRIPT = "";
        var G_SITE_NAME = "WeCenter 社交化问答社区程序";
        var G_BASE_URL = "http://wenda.wecenter.com";
        var G_STATIC_URL = "http://wenda.wecenter.com/static";
        var G_UPLOAD_URL = "http://wenda.wecenter.com/uploads";
        var G_USER_ID = "";
        var G_USER_NAME = "";
        var G_UPLOAD_ENABLE = "N";
        var G_UNREAD_NOTIFICATION = 0;
        var G_NOTIFICATION_INTERVAL = 100000;
        var G_CAN_CREATE_TOPIC = "";
        var G_ADVANCED_EDITOR_ENABLE = "Y";

    </script>
    <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/jquery-2.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/jquery-form.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/plug-in_module.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/aws.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/aw_template.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/app.js"></script>
    <script type="text/javascript" src="/tp/Public/Js/compatibility.js"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="http://wenda.wecenter.com/static/js/respond.js"></script>
    <![endif]-->
    <style type="text/css">.fancybox-margin{margin-right:17px;}</style></head>
<body>
<noscript unselectable="on" id="noscript">
    &lt;div class="aw-404 aw-404-wrap container"&gt;
    &lt;img src="http://wenda.wecenter.com/static/common/no-js.jpg"&gt;
    &lt;p&gt;你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!&lt;/p&gt;
    &lt;/div&gt;
</noscript>
<?php
if(empty($_SESSION['user_name'])){ ?>
<div class="aw-top-menu-wrap">
    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href=""><img src="/tp/Public/images/login_logo.png" alt="" width="90px" height="40px"></a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box  hidden-xs hidden-sm">
            <form class="navbar-search" action="<?php echo U('Index/sou/index');?>" id="global_search_form" method="get">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q" id="aw-search-query">
                <button title="搜索" id="global_search_btns" name="sou"></i></button>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list collapse"></ul>
                        <p class="search"><span>搜索:</span><a onclick=""></a></p>
                    </div>
                    <div class="mod-footer">
                        <a href="" onclick="$(&#39;#header_publish&#39;).click();" class="pull-right btn btn-mini btn-success publish">发起问题</a>
                    </div>
                </div>
            </form>
        </div>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="" class="active"><i class="icon icon-list"></i> 发现</a></li>

                    <!-- <li><a href="http://wenda.wecenter.com/question/" class="">问题</a></li>

                    <li><a href="http://wenda.wecenter.com/article/" class="">文章</a></li> -->

                    <li><a href=""><i class="icon icon-topic"></i> 话题</a></li>
                    <li><a href="/"><i class="icon icon-bulb"></i> 帮助</a></li>					<li>
                    <a style="font-weight:bold;">· · ·</a>
                    <div class="dropdown-list pull-right">
                        <ul id="extensions-nav-list">
                            <li><a href="http://wenda.wecenter.com/project/"><i class="icon icon-activity"></i> 活动</a></li>
                        </ul>
                    </div>
                </li>
                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->
        <div class="aw-user-nav">
            <!-- 登陆&注册栏 -->
            <a class="login btn btn-normal btn-primary" href="<?php echo U('Index/Login/index');?>">登录</a>
            <a class="register btn btn-normal btn-success" href="<?php echo U('Index/Register/index');?>">注册</a>								<!-- end 登陆&注册栏 -->
        </div>
        <!-- end 用户栏 -->
        <!-- 发起 -->
        <!-- end 发起 -->
    </div>
</div>
<?php
}else{ ?>
<div class="aw-top-menu-wrap">
    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href=""><img src="/tp/Public/images/login_logo.png" alt="" width="90px" height="40px"></a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box  hidden-xs hidden-sm">
            <form class="navbar-search" action="<?php echo U('Index/sou/index');?>" id="global_search_form" method="get">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="sou" id="aw-search-query">
                <button title="搜索" id="global_search_btns"><i class="icon icon-search"></i></button>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list collapse"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$(&#39;#global_search_form&#39;).submit();"></a></p>
                    </div>
                    <div class="mod-footer">
                        <a href="javascript:;" onclick="$(&#39;#header_publish&#39;).click();" class="pull-right btn btn-mini btn-success publish">发起问题</a>
                    </div>
                </div>
            </form>
        </div>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="<?php echo U('../../');?>"><i class="icon icon-home"></i> 动态</a></li>
                    <li><a href="http://wenda.wecenter.com/" class=""><i class="icon icon-list"></i> 发现</a></li>

                    <!-- <li><a href="http://wenda.wecenter.com/question/" class="">问题</a></li>

                    <li><a href="http://wenda.wecenter.com/article/" class="">文章</a></li> -->

                    <li><a href="http://wenda.wecenter.com/topic/"><i class="icon icon-topic"></i> 话题</a></li>
                    <li>
                        <a href="http://wenda.wecenter.com/notifications/" class=""><i class="icon icon-bell"></i> 通知</a>
                        <span class="badge badge-important" style="display:none" id="notifications_unread">0</span>
                        <div class="aw-dropdown pull-right hidden-xs">
                            <div class="mod-body">
                                <ul id="header_notification_list"><p class="aw-padding10" align="center">没有未读通知</p></ul>
                            </div>
                            <div class="mod-footer">
                                <a href="http://wenda.wecenter.com/notifications/">查看全部</a>
                            </div>
                        </div>
                    </li>
                    <li><a href="http://wenda.wecenter.com/help/"><i class="icon icon-bulb"></i> 帮助</a></li>					<li>
                    <a style="font-weight:bold;">· · ·</a>
                    <div class="dropdown-list pull-right">
                        <ul id="extensions-nav-list">
                            <li><a href="http://wenda.wecenter.com/project/"><i class="icon icon-activity"></i> 活动</a></li>
                        </ul>
                    </div>
                </li>
                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->
        <div class="aw-user-nav">
            <!-- 登陆&注册栏 -->
            <a href="<?php echo U('Index/people/index/id');?>/<?php echo ($_SESSION['id']); ?>" class="aw-user-nav-dropdown">
                <img alt="<?php echo $_SESSION['user_name']; ?>" src="/tp<?php echo ($_SESSION['avatarulr']); ?>">
                <span class="badge badge-important">1</span>
            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <li><a href="http://wenda.wecenter.com/inbox/"><i class="icon icon-inbox"></i> 私信<span class="badge badge-important collapse" id="inbox_unread">1</span></a></li>
                    <li class="hidden-xs"><a href="<?php echo U('Index/Profile/index');?>"><i class="icon icon-setting"></i> 设置</a></li>
                    <li><a href="<?php echo U('/index/index/esc/');?>"><i class="icon icon-logout"></i> 退出</a></li>
                </ul>
            </div>
            <!-- end 登陆&注册栏 -->
        </div>
        <!-- end 用户栏 -->
        <!-- 发起 -->
        <div class="aw-publish-btn">

            <a id="header_publish" class="btn-primary" href="http://wenda.wecenter.com/publish/" onclick="AWS.dialog(&#39;publish&#39;, {&#39;category_enable&#39;:&#39;0&#39;, &#39;category_id&#39;:&#39;0&#39;, &#39;topic_title&#39;:&#39;&#39;}); return false;"><i class="icon icon-ask"></i>发起</a>
            <div class="dropdown-list pull-right">
                <ul>
                    <li>
                        <form method="post" action="http://wenda.wecenter.com/publish/">
                            <a href="<?php echo U('Index/publish/index');?>">问题</a>
                        </form>

                    </li>
                </ul>
            </div>
        </div>
        <!-- end 发起 -->
    </div>
</div>
<?php } ?>
<link rel="stylesheet" type="text/css" href="/tp/Public/Css/user-setting.css" />
<script type="text/javascript" src="/tp/Public/Js/jquery-s.js"></script>
<script type="text/javascript" src="/tp/Public/Js/main.js"></script>
<!--<script type="text/javascript" src="/tp/Public/Js/city.js"></script>-->
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li><a href="<?php echo U('Index/profile/passphrases');?>">安全设置</a></li>
                            <li><a href="<?php echo U('Index/profile/touxiang');?>">头像设置</a></li>
							<li class="active"><a href="<?php echo U('Index/profile/index');?>">基本资料</a></li>
							
							<h2><i class="icon icon-setting"></i> 用户设置</h2>
						</ul>
					</div>
					
					<div class="tab-content clearfix">
<!-- 基本信息 -->
<div class="aw-mod">
	<form id="setting_form" method="post" action="">
	<div class="mod-body">
		<div class="aw-mod mod-base">
			<div class="mod-head">
				<h3>基本信息</h3>
			</div>

			<div class="mod-body">
				<dl>
					<dt>账号:</dt>
					<dd><?php echo ($ary['mail']); ?></dd>
				</dl>
				<dl>
					<dt>真实姓名:</dt>
					<dd> <?php echo ($ary['user_name']); ?></dd>
				</dl><dl>
					<dt>性别:</dt>
					<dd>
						<label>
							<input name="sex" id="xb" value="男" type="radio" <?php if($ary['xb'] == '男'): ?>checked="checked"<?php endif; ?> >男						</label>
						<label>
							<input name="sex" id="xb" value="女" type="radio" <?php if($ary['xb'] == '女'): ?>checked="checked"<?php endif; ?>> 女						</label>
						<label>
							<input name="sex" id="xb" value="保密" type="radio" <?php if($ary['xb'] == '保密'): ?>checked="checked"<?php endif; ?>> 保密						</label>
					</dd>
				</dl>
				<dl>
					<dt>生日:</dt>
					<dd>
						<select name="nian">
							<option value=""></option>
                            <?php $__FOR_START_11986__=1900;$__FOR_END_11986__=2017;for($i=$__FOR_START_11986__;$i < $__FOR_END_11986__;$i+=1){ if($boy[0] == $i): ?><option value="<?php echo ($i); ?>" selected="selected" ><?php echo ($i); ?></option>
                                    <?php else: ?>
                                    <option value="<?php echo ($i); ?>"><?php echo ($i); ?></option><?php endif; } ?>
                        </select>
						年<select name="yue">
							<option value=""></option>
                            <?php $__FOR_START_7075__=1;$__FOR_END_7075__=13;for($i=$__FOR_START_7075__;$i < $__FOR_END_7075__;$i+=1){ if($boy[1] == $i): ?><option value="<?php echo ($i); ?>" selected="selected" ><?php echo ($i); ?></option>
                                    <?php else: ?>
                                    <option value="<?php echo ($i); ?>"><?php echo ($i); ?></option><?php endif; } ?>
                    </select>
                        月<select name="ri">
							<option value=""></option>
                        <?php $__FOR_START_7840__=1;$__FOR_END_7840__=32;for($i=$__FOR_START_7840__;$i < $__FOR_END_7840__;$i+=1){ if($boy[2] == $i): ?><option value="<?php echo ($i); ?>" selected="selected" ><?php echo ($i); ?></option>
                                <?php else: ?>
                                <option value="<?php echo ($i); ?>"><?php echo ($i); ?></option><?php endif; } ?>						</select>
						日					</dd>
				</dl>
				<dl>
					<dt><label>现居:</label></dt>
					<dd>
                            <select id="province" name="dz_sf" onchange="git()">
                                <option value="默认选择">选择省份</option>
                                <option value="<?php echo ($ary['dz_sf']); ?>" selected><?php echo ($ary['dz_sf']); ?></option>
                                <option value="北京市">北京市 </option>
                                <option value="广东省">广东省 </option>
                                <option value="上海市">上海市 </option>
                                <option value="天津市">天津市 </option>
                                <option value="重庆市">重庆市 </option>
                                <option>辽宁省</option>
                                <option>江苏省</option>
                                <option>湖北省</option>
                                <option>四川省</option>
                                <option>陕西省</option>
                                <option>河北省</option>
                                <option>山西省</option>
                                <option>河南省</option>
                                <option>吉林省</option>
                                <option>黑龙江</option>
                                <option>内蒙古</option>
                                <option>山东省</option>
                                <option>安徽省</option>
                                <option>浙江省</option>
                                <option>福建省</option>
                                <option>湖南省</option>
                                <option>广西省</option>
                                <option>江西省</option>
                                <option>贵州省</option>
                                <option>云南省</option>
                                <option>西藏</option>
                                <option>海南省</option>
                                <option>甘肃省</option>
                                <option>宁夏</option>
                                <option>青海省</option>
                                <option>新疆</option>
                                <option>香港</option>
                                <option>澳门</option>
                                <option>台湾</option>
                                <option>海外</option>
                                <option>其他</option>			</select>
                        <select id="city" name="dz_cs">
                        <option value="默认选择">市</option>
                        <option value="<?php echo ($ary['dz_cs']); ?>" selected><?php echo ($ary['dz_cs']); ?></option>
                    </select>
					</dd>
				</dl>
				<dl>
					<dt><label>职业:</label></dt>
					<dd>
						<select name="zy" id="zy" onclick="gg()">
                            <?php if($ary['zy'] == ''): ?><option value=""></option>
                                <?php else: ?>
                                <option value="<?php echo ($ary['zy']); ?>"><?php echo ($ary['zy']); ?></option><?php endif; ?>

							<option value="站长">站长</option>
							<option value="产品经理">产品经理</option>
							<option value="视觉设计师">视觉设计师</option>
							<option value="程序员">程序员</option>
							<option value="前端工程师">前端工程师</option>
							<option value="风险投资者">风险投资者</option>
							<option value="职业经理人">职业经理人</option>
							<option value="运营人员">运营人员</option>
							<option value="人力资源">人力资源</option>
							<option value="运维人员">运维人员</option>
							<option value="创业者">创业者</option>
							<option value="媒体">媒体</option>
							<option value="天使">天使</option>
							<option value="学生">学生</option>
							<option value="其他">其他</option>						</select>
					</dd>
				</dl>
				<dl>
					<dt><label>介绍:</label></dt>
					<dd class="introduce"><input class="form-control" name="js" maxlength="128" type="text" value="<?php echo ($ary['js']); ?>"></dd>
			</dl>

			</div>
		</div>
		<!-- end 基本信息 -->

		<!-- 联系方式 -->
		<div class="aw-mod mod-contact">
			<div class="mod-head">
				<h3>联系方式</h3>
			</div>
			<div class="mod-body clearfix">
				<ul>
					<li>
						<label for="input-qq">QQ:</label>
					    <input class="form-control" type="text" id="input-qq" name="qq" value="<?php echo ($ary['qq']); ?>">
					</li>
					<li>
						<label for="input-mobile">手机号码:</label>
					    <input class="form-control" type="text" id="input-mobile" name="dh" value="<?php echo ($ary['dh']); ?>">
					</li>
					<li>
						<label for="input-common-email">常用邮箱:</label>
					    <input class="form-control" type="text" id="input-common-email" name="cymail" value="<?php echo ($ary['cymail']); ?>">
					</li>
					<li>
						<label for="input-homepage">网站:</label>
					    <input class="form-control" type="text" id="input-homepage" name="wz" value="<?php echo ($ary['wz']); ?>">
					</li>
				</ul>
			</div>
		</div>
		<!-- end 联系方式 -->

	</div>

	<div class="mod-footer clearfix">
		<!--< href="javascript:;" class="btn btn-large btn-success pull-right" onclick="AWS.ajax_post($(&#39;#setting_form&#39;));">保存</>-->
	<button class="btn btn-large btn-success pull-right" type="submit">保存</button>
	</div>
    </form>
</div>

<script type="text/javascript">
$(document).ready(function () {
	$('.select_area').LocationSelect({
        labels: ["请选择省份或直辖市", "请选择城市"],
        elements: document.getElementsByTagName("select"),
        detector: function () {
            this.select(["", ""]);
        },
		dataUrl: G_BASE_URL.replace('/?', '') + '/static/js/areas.js'
    });

    var fileUpload = new FileUpload('avatar', $('#avatar_uploader'), $('#avatar_src'), G_BASE_URL + '/account/ajax/avatar_upload/', {'loading_status' : '#avatar_uploading_status'});
});


</script>

<script type="text/javascript" src="./images/setting.js"></script>

					</div>
				</div>
			</div>
		</div>
	</div>
</div><div class="aw-footer-wrap">
	<div class="aw-footer">
		Copyright © 2016<span class="hidden-xs"> - 粤ICP备14054802, All Rights Reserved</span>

		<span class="hidden-xs">Powered By <a href="http://www.wecenter.com/?copyright" target="blank">WeCenter 3.1.7</a></span>

			</div>
</div>

<a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});" style="display: none;"><i class="icon icon-up"></i></a>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6d30c149d6f00fa3f34dc482f264a080' type='text/javascript'%3E%3C/script%3E"));
</script><script src="./js/h.js" type="text/javascript"></script>

<!-- DO NOT REMOVE -->
<div id="aw-ajax-box" class="aw-ajax-box"></div>

<div style="display:none;" id="__crond"><img src="./images/1453180583" width="1" height="1"></div>

<!-- Escape time: 0.037697792053223 --><!-- / DO NOT REMOVE -->



</body></html>